package student;

import student.utils.FileUtil;

/**
 *
 * 多线程
 * @author
 * @date 2020/5/9.
 */
public class CustomThread extends Thread{
    private String path;

    public CustomThread(String path) {
        this.path = path;
    }

    @Override
    public void run () {
        FileUtil fileUtil = new FileUtil();
        fileUtil.queryAll(path);
    }

    public static void main(String[] args) {
        Thread thread1 = new CustomThread(Main.studentFilePath);
        thread1.start();

        Thread thread2 = new CustomThread(Main.teacherFilePath);
        thread2.start();

        Thread thread3 = new CustomThread(Main.bookFilePath);
        thread3.start();

    }
}
